$(document).ready(function() {
	$("#demo").validate({
		rules:{
			"announce.announceName": {
				required: true,
	    		maxlength: 30
			},
			"announce.announceContent":{
				required: true
	    		//maxlength: 500
			}
		}
	});
});